From 661f7feb9b288e4bcce1ac67d0b355b459a5e38a Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 21 Nov 2007 15:08:10 +0000 Subject: [PATCH] C89 Fix in kml.c git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3027 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/kml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpsbabel/kml.c b/gpsbabel/kml.c index 5c3d12516..20f9e9920 100644 --- a/gpsbabel/kml.c +++ b/gpsbabel/kml.c @@ -769,6 +769,9 @@ char * kml_gc_mkstar(int rating) static void kml_geocache_pr(const waypoint *waypointp) { char *p, *is; + double lat = waypointp->latitude;; + double lng = waypointp->longitude; +// optionally "fuzz" lat/lng here. kml_write_xml(1, "\n"); @@ -824,9 +827,6 @@ static void kml_geocache_pr(const waypoint *waypointp) kml_write_xml(-1, "\n"); // Location - double lat = waypointp->latitude;; - double lng = waypointp->longitude; -// optionally "fuzz" lat/lng here. kml_write_xml(1, "\n"); kml_write_xml(0, "%f,%f,%f\n", lng, lat, -- 2.30.2